package com.jd.idal;

import org.apache.ibatis.annotations.Select;

import com.jd.model.UserInfo;

public interface IUserMapper
{
	@Select("select * from jd_managerUser where id=#{id}")
    public UserInfo getUserById(int id);
	
	@Select("select * from jd_managerUser where username=#{0} and password=#{1}")
	public boolean validateUserLogin(String username,String password);
	
	@Select("select * from jd_managerUser where username=#{username} and password=#{password}")
	public boolean validateLogin(UserInfo u);
}
